package com.enjoyor.soa.traffic.core.efoms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.efoms.constant.VideoGroupInfoSqlId;
import com.enjoyor.soa.traffic.core.efoms.domain.VideoGroupInfo;
import com.enjoyor.soa.traffic.core.efoms.mapper.IVideoGroupInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;

@Service
@Transactional
public class VideoGroupInfoMapper extends BaseMapper<VideoGroupInfo> implements IVideoGroupInfoMapper{

	
	@Override
	public Page getVideoGroupInfoPage(Page page) {
		// TODO Auto-generated method stub
		return this.selectPageInfo(getSqlName(VideoGroupInfoSqlId.SQL_SELECT_ALL), page);
	}

	@Override
	public List<VideoGroupInfo> getVideoGroupInfoList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(VideoGroupInfoSqlId.SQL_SELECT_LIST), map);
	}

	@Override
	public int delVideoGroupInfoByParCode(String parentCode) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.delete(getSqlName(VideoGroupInfoSqlId.SQL_DELETE_BY_PARNETCODE), parentCode);
	}

	
}
